package com.travel.controller;

import com.travel.dto.LookForCarDto;
import com.travel.pojo.Cars;
import com.travel.service.CarsService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单项包含订单(OrderItemDetail)表控制层
 *
 * @author makejava
 * @since 2023-05-10 14:54:29
 */
@RestController
@RequestMapping("cars")
public class CarsController {
    /**
     * 服务对象
     */
    @Resource
    private CarsService carsService;


    /**
     * 快速选车（—— 包括车辆的类型 座位数，排挡，品牌进行查询
     *
     * @return
     */
    @ApiOperation(value = "快速选车", notes = "快速选车notes")
    @PostMapping("/FastCarSelection")
    public List<Cars> FastCarSelection(@RequestBody LookForCarDto lookForCarDto) {
        List<Cars> carsList = carsService.FastCarSelection(lookForCarDto);
        return carsList;
    }

}

